package com.mysoft.gfyx.common.concurrency;

public interface CacheLockService {
    String CLOCK_PREFIX = "CONCURRENCY_LOCK";

    boolean getCacheLock(String key, String requestId);

    void releaseCacheLock(String key, String requestId);

    String GLOBAL_PREFIX = "GLOBAL_CACHE";

    <T> T get(String key);

    <T> void set(String key, T obj);

    <T> void set(String key, T obj, long timeout);

    void delete(String key);
}
